dict1 ={'name':'张三','age':18,'sex':'男'}
# del dict1  #删除整个字典
# print (dict1)
# del dict1['name']
# print (dict1)  #根据key删除
# del dict1['tel']   #删除不存在的key会报错
# print (dict1)

dict1.clear()  #清空字典
print (dict1)





